package com.newcapec.shiro.constant;

/**
 * 系统编码：Java的响应码
 */
public enum SystemCode {
    OK(200, "成功"),
    UsernameExists(401, "用户名已存在"),
    NotLogin(402, "用户未登录"),
    UsernameError(403, "用户名或密码错误"),
    AuthError(404, "未授权，不能访问"),
    TokenError(405, "用户令牌已失效，请重新登录"),
    Erorr(500, "失败");

    int code;
    String message;

    SystemCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
